ds=$1

mysql -e "truncate business.bigdata01_ads_t_recent_data_increment;" -ubusiness -pBusiness45345..


sqoop export \
--export-dir /daas/motl/bigdata01/dws/dws_t_recent_data_increment/ds=${ds} \
--columns create_time,day_user_register_num,day_user_num,sum_order,day_sum_order \
--fields-terminated-by ',' \
--connect 'jdbc:mysql://cdh01:3306/business?useUnicode=true&characterEncoding=UTF-8&useSSL=false' \
--username business \
--password Business45345.. \
--table bigdata01_ads_t_recent_data_increment \
--num-mappers 1